home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / diffs / gdb-4.12 / gdb / makefile.in < prev    next >
Encoding:
Makefile  |  1994-08-05  |  1.7 KB  |  51 lines

  1. *** orig/gdb-4.12/gdb/makefile.in    Tue Jul 26 00:17:22 1994
  2. --- src/gdb-4.12/gdb/makefile.in    Tue Jul 26 00:23:28 1994
  3. ***************
  4. *** 506,539 ****
  5.   # We do this by grepping through sources.  If that turns out to be too slow,
  6.   # maybe we could just require every .o file to have an initialization routine
  7.   # of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
  8. ! init.c: $(OBS) $(TSOBS)
  9. !     @echo Making init.c
  10. !     @rm -f init.c-tmp
  11. !     @echo '/* Do not modify this file.  */' >init.c-tmp
  12. !     @echo '/* It is created automatically by the Makefile.  */'>>init.c-tmp
  13. !     @echo 'void initialize_all_files () {' >>init.c-tmp
  14. !     @for i in $(OBS) $(TSOBS); do \
  15. !       filename=`echo $$i | sed \
  16. !         -e '/^Onindy.o/d' \
  17. !         -e '/^nindy.o/d' \
  18. !         -e '/ttyflush.o/d' \
  19. !         -e '/xdr_ld.o/d' \
  20. !         -e '/xdr_ptrace.o/d' \
  21. !         -e '/xdr_rdb.o/d' \
  22. !         -e '/udr.o/d' \
  23. !         -e '/udip2soc.o/d' \
  24. !         -e '/udi2go32.o/d' \
  25. !         -e '/version.o/d' \
  26. !         -e '/[a-z0-9A-Z_]*-exp.tab.o/d' \
  27. !         -e 's/\.o/.c/'` ; \
  28. !       case $$filename in \
  29. !         "") ;; \
  30. !         *) sed <$(srcdir)/$$filename >>init.c-tmp -n \
  31. !         -e '/^_initialize_[a-z_0-9A-Z]* *(/s/^\([a-z_0-9A-Z]*\).*/  {extern void \1 (); \1 ();}/p' ; ;; \
  32. !       esac ; \
  33. !     done
  34. !     @echo '}' >>init.c-tmp
  35. !     @mv init.c-tmp init.c
  36.   
  37.   .PRECIOUS: init.c
  38.   
  39. --- 506,516 ----
  40.   # We do this by grepping through sources.  If that turns out to be too slow,
  41.   # maybe we could just require every .o file to have an initialization routine
  42.   # of a given name (remote-udi.o -> _initialize_remote_udi, etc.).
  43. ! init.c: $(OBS) $(TSOBS) getinit
  44. !     ./getinit $(OBS) $(TSOBS)
  45. ! getinit : getinit.o
  46. !     $(CC) getinit.o -o getinit
  47.   
  48.   .PRECIOUS: init.c
  49.   
  50.